package com.weaver.smartext.core.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.InputStream;
import java.time.LocalDateTime;

/**
 * @Description:
 * @title: TextAnalysis
 * @Author Star_Chen
 * @Date: 2023/4/4 11:21
 * @Version 1.0
 */
@Data
public class TextAnalysis {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String text;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private String title;

    private String keyword;

    private Integer pages;

    private Integer type;

    private Integer isDeleted;

    private String md5;

    private String suffix;

    private InputStream inputStream;
}
